COM AT^SREM test - Get / Set reminder state
COM V1.0	27.01.2004	T. Kleinmann	Started
COM V1.1	22.02.2005	T. Kleinmann	Implemented URC 'Testing'

##########################################################################################
#ToDo: Implement URC testing more automated, e.g. set alarm clock event automatcally.
##########################################################################################

from attglobals import *

##########################################################################################

COM Test command
AT^SREM=?
WAITFOR(1,'SREM: (0,1),(0-2),(0,1)')

##########################################################################################

COM Read command - general
AT^SREM?
WAITFOR(1,'SREM: ')

##########################################################################################

COM Write command
i=0
for r in range (0,3):
	for s in range (0,2):
			i+=1
			COM 'Write command '
			COM 'Reminder	 ',r
			COM 'ID	 ',i
			COM 'State	 ',s
			ATCMD(1,'AT^SREM=',r,i,s)
			WAIT FOR OK
			WAIT 2000
			AT^SREM?
			WAITFOR (1,'SREM:',r,i,s)

##########################################################################################

COM Check URC ^SREM

MESSAGE('Please set a reminder/alarm clock event to be due in a few minutes.\n\
Press OK a few seconds before reminder is due!')

WAITFOR(1,'^SREM')

##########################################################################################